<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;
/*
 * admin模块路由开始
 */
Route::rule('admin/list', 'admin/auth.CommonAdmin/list');
Route::rule('admin/edit', 'admin/auth.CommonAdmin/edit');
Route::rule('admin/delete', 'admin/auth.CommonAdmin/delete');

Route::rule('route/list', 'admin/auth.CommonAdminRoute/list');
Route::rule('route/edit', 'admin/auth.CommonAdminRoute/edit');
Route::rule('route/delete', 'admin/auth.CommonAdminRoute/delete');

Route::rule('auth/list', 'admin/auth.CommonAdminAuth/list');
Route::rule('auth/edit', 'admin/auth.CommonAdminAuth/edit');
Route::rule('auth/delete', 'admin/auth.CommonAdminAuth/delete');

Route::rule('role/listAll', 'admin/auth.CommonAdminRole/listAll');
Route::rule('role/list', 'admin/auth.CommonAdminRole/list');
Route::rule('role/edit', 'admin/auth.CommonAdminRole/edit');
Route::rule('role/delete', 'admin/auth.CommonAdminRole/delete');

Route::rule('menu/listAll$', 'admin/auth.CommonAdminMenu/listAll');
Route::rule('menu/list$', 'admin/auth.CommonAdminMenu/list');
Route::rule('menu/edit$', 'admin/auth.CommonAdminMenu/edit');
Route::rule('menu/delete$', 'admin/auth.CommonAdminMenu/delete');
Route::rule('menu/parentList$', 'admin/auth.CommonAdminMenu/parentList');

Route::rule('action-log/list', 'admin/auth.CommonAdminActionLog/list');
Route::rule('login-log/list', 'admin/auth.CommonAdminLoginLog/list');

/*
 * admin模块路由结束
 */


/*
 * 系统配置模块开始
 */
Route::rule('city-config/listAll', 'admin/sys.CommonSysCityConfig/listAll');
Route::rule('city-config/list', 'admin/sys.CommonSysCityConfig/list');

Route::rule('other-config/load', 'admin/sys.CommonSysOtherConfig/load');
Route::rule('other-config/edit', 'admin/sys.CommonSysOtherConfig/edit');

Route::rule('config/list', 'admin/sys.CommonSysConfig/list');
Route::rule('config/edit', 'admin/sys.CommonSysConfig/edit');
Route::rule('config/delete', 'admin/sys.CommonSysConfig/delete');

Route::rule('ip-config/list', 'admin/sys.CommonSysIpConfig/list');
Route::rule('ip-config/edit', 'admin/sys.CommonSysIpConfig/edit');
Route::rule('ip-config/delete', 'admin/sys.CommonSysIpConfig/delete');

/*
 * 系统配置模块结束
 */
//-------------------------------------------------------------------------------------------



/*
 * 公共模块路由开始
 */
Route::rule('uploadCommon/excelTemp', 'admin/YwCommon/excelTemp');
Route::rule('uploadCommon/uploadImage', 'admin/YwCommon/uploadImage');
Route::rule('uploadCommon/uploadImageOss', 'admin/YwCommon/uploadImageOss');
Route::rule('uploadCommon/excelUpload', 'admin/YwCommon/excelUpload');

Route::rule('login/login', 'admin/Login/login');
Route::rule('login/captcha', 'admin/Login/captcha');
Route::rule('login/load', 'admin/Login/loadAdmin');
Route::rule('login/test', 'admin/Login/test');
/*
 * 公共模块路由结束
 */


/*
 * 用户模块路由结束
 */

Route::rule('table-namespace/list', 'admin/table.CommonTableNamespace/list');//namespace表获取列表
Route::rule('table-namespace/listAll', 'admin/table.CommonTableNamespace/listAll');//namespace表获取所有数据
Route::rule('table-namespace/edit', 'admin/table.CommonTableNamespace/edit');//namespace表编辑
Route::rule('table-namespace/delete', 'admin/table.CommonTableNamespace/delete');//namespace表删除数据
Route::rule('table-namespace/updateStatus', 'admin/table.CommonTableNamespace/updateStatus');//namespace表更改状态

Route::rule('table-config/list', 'admin/table.CommonTableConfig/list');
Route::rule('table-config/edit', 'admin/table.CommonTableConfig/edit');
Route::rule('table-config/delete', 'admin/table.CommonTableConfig/delete');
Route::rule('table-config/generateClass', 'admin/table.CommonTableConfig/generateClass');
Route::rule('table-config/generateAllClass', 'admin/table.CommonTableConfig/generateAllClass');
Route::rule('table-config/zipModule', 'admin/table.CommonTableConfig/zipModule');
Route::rule('table-config/test', 'admin/table.CommonTableConfig/test');

